from django.urls import path
from .views import (GoodKindAPIView, GoodDetailAPIView,
                    GoodsFindAPIView,
                    GoodsSearchAPIView,
                    GoodsSearchDataAPIView)

urlpatterns = [
    path('find', GoodsFindAPIView.as_view()),
    path('kinds/<int:kind_id>/<int:page>', GoodKindAPIView.as_view()),
    path('search/<str:keyword>/<int:page>/<int:order_by>', GoodsSearchAPIView.as_view()),
    path('<str:sku_id>', GoodDetailAPIView.as_view()),
    path('get_keyword_data_count/<str:keyword>', GoodsSearchDataAPIView.as_view()),
]
